{config_load file="test.conf" section="setup"}
{include file="header.tpl" title={$titulo}}
{include file="menu.tpl"}
<div class="container">
	
	Nova Tarefa: <img src='libs/imagens/add.png' alt='::Adicionar::' onclick='location.href="tarefa.php?action=addTarefa"' />
	<table width='100%' class='table table-striped'>
		<caption>Lista de Tarefas</caption>
		<thead>
			<th>Nome</th>
			<th>Status</th>
			<th>Data de Cadastro</th>
			<th>Data de Alteração</th>
			<th>Usuário</th>
			<th>Alterar</th>
			<th>Passar para...</th>
		</thead>
		{section name=i loop=$nome_tarefa}
		<tbody>
		<tr>
			<td>
				{$nome_tarefa[i]}
			</td>
			<td>
				{$status[i]}
			</td>
			<td>
				{$data_cadastro[i]}
			</td>
			<td>
				{$data_alteracao[i]}
			</td>
			<td>
				{$idusuario[i]}
			</td>
			<td>
				{$observacao[i]}
			</td>
			<td align='center'>
				<img src='libs/imagens/edit.png' alt='::Editar::' onclick='location.href="tarefa.php?idtarefa={$idtarefa[i]}&action=editTarefa"' />
			</td>
			<td align='center'>
				<img src='libs/imagens/delete.png' alt='::Deletar::' onclick='location.href="tarefa.php?idtarefa={$idtarefa[i]}&action=delTarefa"'/>
			</td>
		</tr>
		</tbody>
		{/section}
	</table>
	
</div> <!-- /container -->
    
{include file="footer.tpl"}